home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / extras / Direct3D / Tools / 3DSMax4 / xskinexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  3.0 KB  |  69 lines

  1. //-----------------------------------------------------------------------------
  2. // File: XSkinExp.h
  3. //
  4. // Desc: Export interface to max definition
  5. //
  6. // Copyright (C) 1998-2000 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8. #ifndef __XSKINEXP__H
  9. #define __XSKINEXP__H
  10.  
  11. // The unique ClassID
  12. #define XSKINEXP_CLASS_ID    Class_ID(0x8788d182, 0x43774da6)
  13.  
  14. // Class ID of the skin modifier included in 3DStudio R3
  15. // This modifier is part of R3 (installed), and the source is in the Max SDK under
  16. // \samples\modifier\bonesdef
  17. #define SKINMOD_CLASS_ID    Class_ID(0x0095C723, 0x00015666)
  18.  
  19. #define VERSION_NUMBER 1
  20. #define RELEASE(x) if(x) {x->Release(); x = NULL;}
  21.  
  22. #define MAX_OFFSET_VECTORS 20
  23.  
  24. extern TCHAR *GetString(int id);
  25. extern HINSTANCE g_hInstance;
  26.  
  27. // ================================================== XSkinExp
  28. class XSkinExp : public SceneExport {
  29.     public:
  30.  
  31.     //Constructor/Destructor
  32.         XSkinExp();
  33.         virtual ~XSkinExp();
  34.  
  35.         virtual int              ExtCount();                    // Number of extensions supported
  36.         virtual const TCHAR *    Ext(int n);                    // Extension #n (i.e. "3DS")
  37.         virtual const TCHAR *    LongDesc();                    // Long ASCII description (i.e. "Autodesk 3D Studio File")
  38.         virtual const TCHAR *    ShortDesc();                // Short ASCII description (i.e. "3D Studio")
  39.         virtual const TCHAR *    AuthorName();                // ASCII Author name
  40.         virtual const TCHAR *    CopyrightMessage();            // ASCII Copyright message
  41.         virtual const TCHAR *    OtherMessage1();            // Other message #1
  42.         virtual const TCHAR *    OtherMessage2();            // Other message #2
  43.         virtual unsigned int    Version();                    // Version number * 100 (i.e. v3.01 = 301)
  44.         virtual void            ShowAbout(HWND hWnd);        // Show DLL's "About..." box
  45.         virtual int             DoExport(   const TCHAR *name,
  46.                                     ExpInterface *ei,
  47.                                     Interface *i, 
  48.                                     BOOL suppressPrompts, 
  49.                                     DWORD options); 
  50.         virtual BOOL SupportsOptions(int ext, DWORD options);
  51. };
  52.  
  53.  
  54.  
  55. // ================================================== XSkinExpClassDesc
  56. // This is the Class Descriptor for the XSkinExp plug-in
  57. class XSkinExpClassDesc:public ClassDesc {
  58.     public:
  59.     int             IsPublic() {return 1;}
  60.     void *             Create(BOOL loading = FALSE) {return new XSkinExp();}
  61.     const TCHAR *    ClassName() {return GetString(IDS_CLASS_NAME);}
  62.     SClass_ID        SuperClassID() {return SCENE_EXPORT_CLASS_ID;}
  63.     Class_ID        ClassID() {return XSKINEXP_CLASS_ID;}
  64.     const TCHAR*     Category() {return GetString(IDS_CATEGORY);}
  65.     void            ResetClassParams (BOOL fileReset);
  66. };
  67.  
  68. #endif // __XSKINEXP__H
  69.